@import '../../../var';
@import '../../../common.wxss';
page {
    background-color: $bgcolor-gray;
}

.more {
    width: 64rpx;
    height: 64rpx;
    margin: 0 30rpx 0 auto;
}

.user-container {
    display: flex;
    align-items: center;
    justify-content: center;
    .name {
        margin-left: $md;
    }
}

.productBox {
    width: 750rpx;
    height: 750rpx;
    .swiperDolgin {
        position: absolute;
        z-index: 1;
        width: 750rpx;
        height: 750rpx;
        background: linear-gradient(0deg, rgba(3, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
        pointer-events: none;
        .showBuy {
            position: fixed;
            display: flex;
            width: 100%;
            height: 48rpx;
            .buyItem {
                display: flex;
                justify-content: center;
                align-items: center;
                padding: 0rpx 25rpx 0rpx 4rpx;
                height: 100%;
                border-radius: 48rpx;
                background-color: rgba(0, 0, 0, 0.5);
                font-size: 24rpx;
                color: #fff;
                position: absolute;
                left: 30rpx;
                opacity: 0;
                .user {
                    width: 42rpx;
                    height: 42rpx;
                    margin-right: 12rpx;
                    overflow: hidden;
                    border-radius: 50%;
                }
            }
        }
    }
    .container {
        width: 750rpx;
        height: 750rpx;
        position: relative;
        .flex-center {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .flex-items-center {
            display: flex;
            align-items: center;
        }
        .btnBox {
            width: 100%;
            position: absolute;
            left: 50%;
            bottom: 40rpx;
            transform: translateX(-50%);
            button {
                margin: 0;
                padding: 0;
                width: 94rpx;
                height: 44rpx;
                font-size: 20rpx;
                color: $title-color;
                border-radius: 22rpx;
                background-color: #dcd7d8;
                &:nth-child(2) {
                    margin-left: 30rpx;
                }
                image {
                    width: 11rpx;
                    height: 14rpx;
                    margin-right: 4rpx;
                }
                &.active {
                    background-color: $primary;
                }
            }
        }
        .indicator {
            position: absolute;
            right: 30rpx;
            bottom: 40rpx;
            font-size: 20rpx;
            color: $bgcolor-light;
            height: 44rpx;
            padding: 0 25rpx;
            background-color: rgba($black-color, 0.3);
            border-radius: 22rpx;
        }
    }
    .swiperBox {
        width: 750rpx;
        height: 750rpx;
        .slide-image {
            width: 750rpx;
            height: 750rpx;
        }
    }
}

.productInfoBox {
    box-sizing: border-box;
    width: 750rpx;
    padding: 50rpx 30rpx 30rpx;
    background-color: $bgcolor-light;
    .title {
        display: flex;
        flex: 1;
        flex-wrap: wrap;
        color: $title-color;
        font-weight: 600;
        font-size: 32rpx;
        line-height: 1.5;
    }
    .saleInfo {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-top: 10rpx;
        color: $info-color;
        font-size: 22rpx;
        .infoText {
            color: $info-color !important;
            text {
                color: $info-color !important;
            }
        }
        .prices {
            text {
                color: $title-color;
            }
            .specal {
                color: $info-color;
            }
        }
    }
}

.vipPrice {
    display: flex;
    width: 100%;
    margin: 20rpx 0 25rpx;
    &-item {
        flex: 1;
        height: 104rpx;
        margin-left: 20rpx;
        color: #fff;
        font-weight: 600;
        font-size: 20rpx;
        background: rgba(153, 153, 153, 1);
        border-radius: 10rpx;
        view {
            width: 100%;
            text-align: center;
        }
        .prices {
            height: 36rpx;
            margin: 15rpx 0 10rpx;
            font-size: 36rpx;
        }
        &:first-child {
            margin-left: 0;
            color: #6a5f32;
            background: linear-gradient(88deg, rgba(253, 242, 199, 1) 0%, rgba(253, 229, 157, 1) 100%);
        }
        &:nth-child(2) {
            background: linear-gradient( 92deg, rgba(69, 65, 65, 1) 0%, rgba(69, 65, 65, 1) 21%, rgba(26, 23, 22, 1) 100%);
        }
    }
}

.userBox {
    display: flex;
    align-items: center;
    width: 100%;
    height: 120rpx;
    margin-top: 20rpx;
    padding: 0 30rpx;
    color: $info-color;
    font-size: 24rpx;
    background-color: #fff;
    .userImg {
        width: 72rpx;
        height: 72rpx;
    }
    .userName {
        margin: 0 20rpx;
        color: $title-color;
        font-weight: 600;
        font-size: 28rpx;
    }
}

.wordContent {
    display: block;
    padding: 0 30rpx;
}

.productDetail {
    width: 100%;
    margin-top: 20rpx;
    margin-bottom: 100rpx;
    background-color: #fff;
    .container {
        width: 100%;
    }
    .nav {
        z-index: 99;
        box-sizing: border-box;
        width: 100%;
        height: 80rpx;
        overflow: hidden;
        font-weight: 600;
        font-size: 16px;
        line-height: 80rpx;
        white-space: nowrap;
    }
    .nav-item {
        display: inline-block;
        width: 15%;
        color: rgba(153, 153, 153, 1);
        font-size: 30rpx;
    }
    .nav-item.active {
        color: $title-color;
    }
    .tab-box {
        box-sizing: border-box;
        padding-bottom: 100rpx;
    }
    .scrollevent {
        overflow-y: scroll;
    }
    .tab-content {
        .tab-content-box {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            width: 100%;
            height: 95%;
             ::-webkit-scrollbar {
                width: 0;
                height: 0;
                color: transparent;
            }
        }
        image {
            display: block;
            width: 100%;
            font-size: 0rpx;
        }
    }
}

.tabber-box {
    position: fixed;
    bottom: 0rpx;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100rpx;
    background-color: $bgcolor-light;
}

.tabber {
    position: fixed;
    bottom: 0rpx;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: $bgcolor-light;
    border-top: 1rpx solid $border-color;
    padding: 20rpx 0rpx;
    .collect {
        display: flex;
        align-items: center;
        justify-content: space-around;
        width: 300rpx;
        .inCollect {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            width: 96rpx;
            height: 70rpx;
            padding: 0;
            color: #1a1a1a;
            font-size: 22rpx;
            line-height: 1;
            background-color: #fff;
            .image {
                position: relative;
                width: 30rpx;
                height: 30rpx;
                margin: auto;
                .carts {
                    position: absolute;
                    top: -14rpx;
                    right: -14rpx;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 28rpx;
                    height: 28rpx;
                    overflow: hidden;
                    color: #fff;
                    font-size: 22rpx;
                    background-color: #f4504d;
                    border-radius: 50%;
                }
                image {
                    width: 100%;
                    height: 100%;
                }
            }
            .collectBox {
                width: 100%;
                margin-top: 8rpx;
                font-size: 22rpx;
                text-align: center;
            }
        }
    }
    .btnBox {
        display: flex;
        max-width: 369rpx;
        height: 70rpx;
        margin-right: 30rpx;
        background: linear-gradient(214deg, rgba(252, 42, 64, 1) 0%, rgba(252, 122, 45, 1) 100%);
        border-radius: 35rpx;
        &-disable {
            opacity: 0.5;
        }
    }
    .buy {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 185rpx;
        height: 100%;
        color: #fff;
        font-weight: 700;
        font-size: 28rpx;
    }
    .buyNow {
        border-right: 1rpx solid #fff;
    }
    .buyNowPrice {
        font-size: 20rpx;
    }
}

.observer {
    width: 100%;
    margin-top: 15rpx;
    padding-top: 1rpx;
}

.block-view {
    display: block;
    width: 100%;
    padding: 44rpx 0;
}

.noStyle {
    opacity: 0;
}

.swiper-tab {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 88rpx;
    padding: 0 30rpx;
    color: $info-color;
    font-size: 28rpx;
    line-height: 88rpx;
    background-color: #fff;
    .comment {
        display: flex;
        align-items: center;
        color: $title-color;
        font-size: 28rpx;
        image {
            width: 28rpx;
            height: 26rpx;
            margin-right: 10rpx;
        }
    }
    &.fixed-top {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 5;
        height: 98rpx;
        margin-top: 0;
        border-top: 10px solid $bgcolor-gray;
        border-bottom: 1px solid #f4f5f5;
    }
}

.swiper-tab-item-box {
    display: flex;
    width: 70%;
}

.swiper-tab-item {
    margin-right: 20rpx;
    font-weight: 700;
    font-size: 28rpx;
}

.active {
    color: #1a1a1a;
}

.tab-container {
    min-height: 100vh;
    background-color: #fff;
    .hasNoList {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        color: $info-color;
    }
}

.show {
    display: block;
}

.hidden {
    display: none;
}

.container {
    margin-bottom: 100rpx;
    padding-bottom: 100rpx;
    font-size: 0rpx;
    .advertisementImg {
        width: 100%;
    }
    p {
        font-size: 30rpx;
    }
    image {
        width: 100%;
        font-size: 0;
    }
    &.commodities {
        padding: 30rpx 30rpx 0 30rpx;
        .productList {
            display: inline-block;
            width: 330rpx;
            height: 524rpx;
            margin-bottom: 34rpx;
            overflow: hidden;
            background: rgba(255, 255, 255, 1);
            border: 1rpx solid rgba(230, 230, 230, 1);
            border-radius: 20rpx;
            .imgBox {
                width: 328rpx;
                height: 328rpx;
                margin: auto;
                image {
                    width: 100%;
                    height: 100%;
                }
            }
            .title {
                box-sizing: border-box;
                width: 284rpx;
                height: 62rpx;
                margin: 24rpx 0rpx 0rpx 20rpx;
                overflow: hidden;
                color: rgba(26, 26, 26, 1);
                font-size: 28rpx;
                line-height: 38rpx;
            }
            .price {
                width: 284rpx;
                height: 25rpx;
                margin: 20rpx 0rpx 0rpx 20rpx;
                color: $price-color;
                font-size: 30rpx;
                line-height: 30rpx;
                .add {
                    font-size: 30rpx;
                }
                text {
                    color: #999999;
                    font-size: 22rpx;
                }
            }
            .oldPrice {
                width: 284rpx;
                height: 19rpx;
                margin: 12rpx 0rpx 0rpx 20rpx;
                color: rgba(204, 204, 204, 1);
                font-size: 20rpx;
            }
        }
        .productList:nth-child(2n) {
            margin-left: 28rpx;
        }
    }
}

.creatTopic {
    position: fixed;
    right: 60rpx;
    bottom: 120rpx;
    width: 100rpx;
    height: 100rpx;
    image {
        width: 100%;
        height: 100%;
    }
}

.srocePrice {
    display: flex;
    justify-content: space-between;
    margin-top: 24rpx;
    color: $price-color;
    font-size: 30rpx;
    .sroce {
        color: $info-color;
        font-size: 22rpx;
    }
}

.lineBox {
    width: 100%;
    height: 8rpx;
    margin: 24rpx 0;
    background-color: #e5e5e5;
    border-radius: 4rpx;
    .priceLine {
        height: 8rpx;
        background-color: $price-color;
        border-radius: 4rpx;
    }
}

.toVip {
    width: 146rpx;
    height: 46rpx;
    color: #6a5f32;
    font-size: 22rpx;
    line-height: 46rpx;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 6rpx;
}

//弹出框
.detailBox {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 800;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    .contentBox {
        position: fixed;
        bottom: 0;
        width: 100%;
        padding: 0 30rpx 30rpx;
        color: $title-color;
        background-color: $bgcolor-light;
        border-radius: 20rpx 20rpx 0 0;
        .titleBox {
            display: flex;
            flex: 1;
            align-items: center;
            justify-content: space-between;
            height: 90rpx;
            .title {
                font-weight: 600;
                font-size: 28rpx;
            }
            .cancel {
                font-size: 40rpx;
            }
        }
        .content {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            height: 100%;
            .categories {
                display: flex;
                flex-wrap: wrap;
                width: 100%;
                margin-bottom: 60rpx;
                &-item {
                    display: inline-block;
                    // width: 210rpx;
                    height: 60rpx;
                    padding: 0 30rpx;
                    margin: 30rpx 20rpx 0 0;
                    color: $title-color;
                    font-size: 28rpx;
                    line-height: 60rpx;
                    text-align: center;
                    background-color: $page-background-color;
                    border-radius: 6rpx;
                }
                .active {
                    color: #fff;
                    background-color: $primary-color;
                }
            }
            .tips {
                width: 100%;
                margin-bottom: 20rpx;
                text-align: center;
                text {
                    color: $info-color;
                }
            }
            .fans {
                display: flex;
                justify-content: center;
                width: 100%;
                color: $title-color;
                font-weight: 600;
                font-size: 60rpx;
            }
            .getSorce {
                display: flex;
                align-items: flex-end;
                justify-content: center;
                width: 100%;
                color: $info-color;
                font-size: 30rpx;
            }
            .btn {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 400rpx;
                height: 62rpx;
                margin: 0 auto 0;
                color: #ffffff;
                font-weight: 600;
                font-size: 28rpx;
                background-color: $primary-color;
                border-radius: 32rpx;
            }
            .btns {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 690rpx;
                height: 84rpx;
                margin: 0 auto 0;
                color: #ffffff;
                font-weight: 600;
                font-size: 32rpx;
                background-color: $primary-color;
                border-radius: 42rpx;
            }
            .disable {
                opacity: 0.4;
            }
        }
    }
}

.cover {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(#000, 0.4);
}

.confirm {
    z-index: 900;
    width: 560rpx;
    overflow: hidden;
    background-color: #fff;
    border-radius: 10rpx;
    .text {
        min-height: 200rpx;
        padding: 54rpx;
        color: $text-color;
    }
    .bottoms {
        display: flex;
        align-items: center;
        height: 90rpx;
        .submits {
            display: flex;
            flex: 0.7;
            align-items: center;
            justify-content: center;
            height: 100%;
            background-color: $primary;
        }
        .cancel {
            display: flex;
            flex: 0.3;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: #fff;
            background-color: #ddd;
        }
    }
}

//微信弹框
.detailBoxs {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    .qrCode {
        width: 460rpx;
        padding: 20rpx;
        background-color: #fff;
        .cancle {
            text-align: right;
        }
        .qrCodeImg {
            display: block;
            width: 330rpx;
            height: 330rpx;
            margin: auto;
        }
        .qrBtn {
            width: 250rpx;
            height: 64rpx;
            margin: 30rpx auto 20rpx;
            color: #fff;
            font-size: 30rpx;
            line-height: 64rpx;
            text-align: center;
            background: $primary-color;
            border-radius: 32rpx;
        }
    }
}

.hide {
    display: none;
}

.snapshotTips {
    margin-top: 28rpx;
    padding: 28rpx;
    background-color: #F5F5F5;
    border-radius: 12rpx;
    font-size: 26rpx;
    color: $text-color;
    text:last-child {
        display: block;
        margin-top: 24rpx;
        color: $primary-color;
    }
}

.card {
    margin-top: 20rpx;
    padding: 32rpx 26rpx;
    background-color: #fff;
    .row {
        display: flex;
        font-size: 30rpx;
        line-height: 35rpx;
        .title {
            color: $info-color;
        }
        .content {
            flex: 1;
            padding-left: 32rpx;
            color: $title-color;
            word-break: break-all;
        }
    }
}